from common.utils import blogDriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

class detail:
    url = ""
    driver = ""
    def __init__(self):
        self.url = "http://8.137.19.140:9090/blog_detail.html?blogId=158477"
        self.driver = blogDriver.driver
        self.driver.get(self.url)

    #详情页
    def detail_test01(self):
        #标题
        self.driver.find_element(By.CSS_SELECTOR, "body > div.container > div.right > div > div.title")

        #时间
        self.driver.find_element(By.CSS_SELECTOR, "body > div.container > div.right > div > div.date")

        #内容
        self.driver.find_element(By.CSS_SELECTOR, "#detail")